

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/fluid.png">
  <link rel="icon" href="/img/fluid.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="author" content="叶飞">
  <meta name="keywords" content="">
  
    <meta name="description" content="VSCode 配置 C++开发环境  1 需要安装的软件  编译器：MinGW : GCC G++ 编辑器：VSCode + 插件   2 安装MinGW  需要安装MinGW，配置系统变量    直接使用压缩包里的mingw64即可    将mingw64 解压缩，放到合适的位置（随意）   配置环境变量  .....\mingw64\bin加入Path      检测环境变量是否配置成功">
<meta property="og:type" content="article">
<meta property="og:title" content="VSCode配置C++开发环境">
<meta property="og:url" content="http://example.com/2022/04/11/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83/index.html">
<meta property="og:site_name" content="博客">
<meta property="og:description" content="VSCode 配置 C++开发环境  1 需要安装的软件  编译器：MinGW : GCC G++ 编辑器：VSCode + 插件   2 安装MinGW  需要安装MinGW，配置系统变量    直接使用压缩包里的mingw64即可    将mingw64 解压缩，放到合适的位置（随意）   配置环境变量  .....\mingw64\bin加入Path      检测环境变量是否配置成功">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411125132333.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411125333299.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411125453130.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411125518789.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411125724930.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411125800822.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411125902110.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411125918023.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411120421972.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411130109227.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411130210785.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411120545428.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411121120270.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411121145957.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411121533612.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411121724438.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411121749822.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411121820778.png">
<meta property="og:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411121848880.png">
<meta property="article:published_time" content="2022-04-11T04:19:56.000Z">
<meta property="article:modified_time" content="2022-04-11T04:22:52.283Z">
<meta property="article:author" content="叶飞">
<meta property="article:tag" content="C++">
<meta property="article:tag" content="VSCode">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="http://example.com/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411125132333.png">
  
  
  
  <title>VSCode配置C++开发环境 - 博客</title>

  <link  rel="stylesheet" href="https://lib.baomitu.com/twitter-bootstrap/4.6.1/css/bootstrap.min.css" />



  <link  rel="stylesheet" href="https://lib.baomitu.com/github-markdown-css/4.0.0/github-markdown.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/hint.css/2.7.0/hint.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->
<!-- Do not modify the link that theme dependent icons -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_hj8rtnfg7um.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">


<link  rel="stylesheet" href="/css/main.css" />


  <link id="highlight-css" rel="stylesheet" href="/css/highlight.css" />
  
    <link id="highlight-css-dark" rel="stylesheet" href="/css/highlight-dark.css" />
  




  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    Fluid.ctx = Object.assign({}, Fluid.ctx)
    var CONFIG = {"hostname":"example.com","root":"/","version":"1.9.2","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false,"scope":[]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"TEXT"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"follow_dnt":true,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/local-search.xml"};

    if (CONFIG.web_analytics.follow_dnt) {
      var dntVal = navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack;
      Fluid.ctx.dnt = dntVal && (dntVal.startsWith('1') || dntVal.startsWith('yes') || dntVal.startsWith('on'));
    }
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
  


  
<meta name="generator" content="Hexo 6.2.0"></head>


<body>
  

  <header>
    

<div class="header-inner" style="height: 70vh;">
  <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/">
      <strong>No Tomorrow</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              &nbsp;<i class="iconfont icon-search"></i>&nbsp;
            </a>
          </li>
          
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

  

<div id="banner" class="banner" parallax=true
     style="background: url('/img/default.png') no-repeat center center; background-size: cover;">
  <div class="full-bg-img">
    <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
      <div class="banner-text text-center fade-in-up">
        <div class="h2">
          
            <span id="subtitle" data-typed-text="VSCode配置C++开发环境"></span>
          
        </div>

        
          
  <div class="mt-3">
    
      <span class="post-meta mr-2">
        <i class="iconfont icon-author" aria-hidden="true"></i>
        叶飞
      </span>
    
    
      <span class="post-meta">
        <i class="iconfont icon-date-fill" aria-hidden="true"></i>
        <time datetime="2022-04-11 12:19" pubdate>
          星期一, 四月 11日 2022, 12:19 中午
        </time>
      </span>
    
  </div>

  <div class="mt-1">
    
      <span class="post-meta mr-2">
        <i class="iconfont icon-chart"></i>
        
          <!-- compatible with older versions-->
          674 字
        
      </span>
    

    
      <span class="post-meta mr-2">
        <i class="iconfont icon-clock-fill"></i>
        
        
        
          <!-- compatible with older versions-->
          6 分钟
        
      </span>
    

    
    
      
        <span id="leancloud-page-views-container" class="post-meta" style="display: none">
          <i class="iconfont icon-eye" aria-hidden="true"></i>
          <span id="leancloud-page-views"></span> 次
        </span>
        
      
    
  </div>


        
      </div>

      
    </div>
  </div>
</div>

</div>

  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="side-col d-none d-lg-block col-lg-2">
      

    </div>

    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">VSCode配置C++开发环境</h1>
            
            
              <div class="markdown-body">
                
                <h1 id="vscode-配置-c开发环境"><a class="markdownIt-Anchor" href="#vscode-配置-c开发环境"></a> VSCode 配置 C++开发环境</h1>
<h2 id="1-需要安装的软件"><a class="markdownIt-Anchor" href="#1-需要安装的软件"></a> 1 需要安装的软件</h2>
<ul>
<li>编译器：MinGW : GCC G++</li>
<li>编辑器：VSCode + 插件</li>
</ul>
<h2 id="2-安装mingw"><a class="markdownIt-Anchor" href="#2-安装mingw"></a> 2 安装MinGW</h2>
<blockquote>
<p>需要安装MinGW，配置系统变量</p>
</blockquote>
<ul>
<li>
<p>直接使用压缩包里的<code>mingw64</code>即可</p>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411125132333.png" srcset="/img/loading.gif" lazyload alt="image-20220411125132333"></p>
</li>
<li>
<p>将<code>mingw64</code> 解压缩，放到合适的位置（随意）</p>
</li>
<li>
<p>配置环境变量</p>
<ul>
<li><code>.....\mingw64\bin</code>加入<code>Path</code></li>
</ul>
</li>
</ul>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411125333299.png" srcset="/img/loading.gif" lazyload alt="image-20220411125333299"></p>
<ul>
<li>检测环境变量是否配置成功
<ul>
<li>win+r，打开命令行，输入cmd，打开命令行</li>
</ul>
</li>
</ul>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411125453130.png" srcset="/img/loading.gif" lazyload alt="image-20220411125453130"></p>
<p>​</p>
<p>​	- <strong>- 输入  gcc -v</strong> 查看</p>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411125518789.png" srcset="/img/loading.gif" lazyload alt="image-20220411125518789"></p>
<h2 id="3-安装vscode"><a class="markdownIt-Anchor" href="#3-安装vscode"></a> 3 安装VSCode</h2>
<ul>
<li>
<p>安装地址：<a target="_blank" rel="noopener" href="http://vscode.bianjiqi.net/">VSCode中文网 - Visual Studio Code中文官网 VS Code编辑器中文网站 (bianjiqi.net)</a></p>
</li>
<li>
<p>下载，点击安装包安装</p>
</li>
</ul>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411125724930.png" srcset="/img/loading.gif" lazyload alt="image-20220411125724930"></p>
<ul>
<li>选择合适的安装位置，点击下一步</li>
</ul>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411125800822.png" srcset="/img/loading.gif" lazyload alt="image-20220411125800822"></p>
<ul>
<li>选择附近任务</li>
</ul>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411125902110.png" srcset="/img/loading.gif" lazyload alt="image-20220411125902110"></p>
<ul>
<li>安装</li>
</ul>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411125918023.png" srcset="/img/loading.gif" lazyload alt="image-20220411125918023"></p>
<h2 id="4-vscode-配置-c开发环境"><a class="markdownIt-Anchor" href="#4-vscode-配置-c开发环境"></a> 4 VSCode 配置 C开发环境</h2>
<h3 id="41-安装插件"><a class="markdownIt-Anchor" href="#41-安装插件"></a> 4.1 安装插件</h3>
<h4 id="411-选择扩展商店并搜索关键字chinese"><a class="markdownIt-Anchor" href="#411-选择扩展商店并搜索关键字chinese"></a> 4.1.1 选择扩展商店，并搜索关键字<code>chinese</code></h4>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411120421972.png" srcset="/img/loading.gif" lazyload alt="image-20220411120421972"></p>
<h4 id="412-安装c"><a class="markdownIt-Anchor" href="#412-安装c"></a> 4.1.2 安装<strong>C++</strong></h4>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411130109227.png" srcset="/img/loading.gif" lazyload alt="image-20220411130109227"></p>
<ul>
<li>
<p>安装前两个</p>
<ul>
<li>点击，选择安装。下面是安装好之后</li>
</ul>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411130210785.png" srcset="/img/loading.gif" lazyload alt="image-20220411130210785"></p>
</li>
</ul>
<h4 id="413-安装code-runner"><a class="markdownIt-Anchor" href="#413-安装code-runner"></a> 4.1.3 安装Code Runner</h4>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411120545428.png" srcset="/img/loading.gif" lazyload alt="image-20220411120545428"></p>
<blockquote>
<p>效果，在右上角出现运行符号，当需要运行代码时，点击即可<strong>直接运行</strong>；</p>
<p>​	否则，需要自己在终端界面完成编译、运行等工作</p>
</blockquote>
<h3 id="43-配置vscode里面的环境"><a class="markdownIt-Anchor" href="#43-配置vscode里面的环境"></a> 4.3 配置vscode里面的环境</h3>
<blockquote>
<p>目的：让vscode知晓gcc g++编译器的路径</p>
<p>可能不需要配置，时间久忘了，可以百度。一般配置好mingw64那一步的环境变量，即可直接运行</p>
</blockquote>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411121120270.png" srcset="/img/loading.gif" lazyload alt="image-20220411121120270"></p>
<ul>
<li>选择配置C/C++插件
<ul>
<li>基本上不需要设置，如果有需要，在这里进行设置</li>
</ul>
</li>
</ul>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411121145957.png" srcset="/img/loading.gif" lazyload alt="image-20220411121145957"></p>
<h2 id="5-运行"><a class="markdownIt-Anchor" href="#5-运行"></a> 5 运行</h2>
<h3 id="51-新建文件然后保存到合适为止"><a class="markdownIt-Anchor" href="#51-新建文件然后保存到合适为止"></a> 5.1 新建文件，然后保存到合适为止</h3>
<h3 id="52-先在文件资源管理器中建立文件夹然后vscode中选择打开文件夹"><a class="markdownIt-Anchor" href="#52-先在文件资源管理器中建立文件夹然后vscode中选择打开文件夹"></a> 5.2 先在文件资源管理器中建立文件夹，然后Vscode中选择打开文件夹</h3>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411121533612.png" srcset="/img/loading.gif" lazyload alt="image-20220411121533612"></p>
<h3 id="53-这里选择打开文件夹然后在vscode中新建文件"><a class="markdownIt-Anchor" href="#53-这里选择打开文件夹然后在vscode中新建文件"></a> 5.3 这里，选择打开文件夹，然后在Vscode中新建文件</h3>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411121724438.png" srcset="/img/loading.gif" lazyload alt="image-20220411121724438"></p>
<ul>
<li>或者顶部栏-文件-新建文件</li>
</ul>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411121749822.png" srcset="/img/loading.gif" lazyload alt="image-20220411121749822"></p>
<h3 id="54-运行"><a class="markdownIt-Anchor" href="#54-运行"></a> 5.4 运行</h3>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411121820778.png" srcset="/img/loading.gif" lazyload alt="image-20220411121820778"></p>
<p><img src="/img/VSCode%E9%85%8D%E7%BD%AEC-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83.assets/image-20220411121848880.png" srcset="/img/loading.gif" lazyload alt="image-20220411121848880"></p>
<ul>
<li>点击后直接运行</li>
</ul>

                
              </div>
            
            <hr/>
            <div>
              <div class="post-metas my-3">
  
    <div class="post-meta mr-3 d-flex align-items-center">
      <i class="iconfont icon-category"></i>
      

<span class="category-chains">
  
  
    
      <span class="category-chain">
        
  <a href="/categories/%E7%BC%96%E7%A8%8B%E5%B7%A5%E5%85%B7/" class="category-chain-item">编程工具</a>
  
  

      </span>
    
  
</span>

    </div>
  
  
    <div class="post-meta">
      <i class="iconfont icon-tags"></i>
      
        <a href="/tags/C/">#C++</a>
      
        <a href="/tags/VSCode/">#VSCode</a>
      
    </div>
  
</div>


              
  

  <div class="license-box my-3">
    <div class="license-title">
      <div>VSCode配置C++开发环境</div>
      <div>http://example.com/2022/04/11/VSCode配置C-开发环境/</div>
    </div>
    <div class="license-meta">
      
        <div class="license-meta-item">
          <div>作者</div>
          <div>叶飞</div>
        </div>
      
      
        <div class="license-meta-item license-meta-date">
          <div>发布于</div>
          <div>2022年4月11日</div>
        </div>
      
      
      <div class="license-meta-item">
        <div>许可协议</div>
        <div>
          
            
            
              <a target="_blank" href="https://creativecommons.org/licenses/by/4.0/">
              <span class="hint--top hint--rounded" aria-label="BY - 署名">
                <i class="iconfont icon-by"></i>
              </span>
              </a>
            
          
        </div>
      </div>
    </div>
    <div class="license-icon iconfont"></div>
  </div>



              
                <div class="post-prevnext my-3">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/2022/04/12/20220412-%E9%87%8D%E8%A3%85MySQL%E6%9C%8D%E5%8A%A1/" title="重装MySQL服务">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">重装MySQL服务</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/2022/04/07/20220407-Docker%E7%BD%91%E7%BB%9C/" title="Docker网络">
                        <span class="hidden-mobile">Docker网络</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
          </article>
        </div>
      </div>
    </div>

    <div class="side-col d-none d-lg-block col-lg-2">
      
  <aside class="sidebar" style="margin-left: -1rem">
    <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div class="toc-body" id="toc-body"></div>
</div>



  </aside>


    </div>
  </div>
</div>





  



  



  



  



  


  
  









    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v" for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>

    

    
  </main>

  <footer>
    <div class="footer-inner">
  
    <div class="footer-content">
       <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> 
    </div>
  
  
  
  
</div>

  </footer>

  <!-- Scripts -->
  
  <script  src="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://lib.baomitu.com/jquery/3.6.0/jquery.min.js" ></script>
<script  src="https://lib.baomitu.com/twitter-bootstrap/4.6.1/js/bootstrap.min.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>


  <script  src="https://lib.baomitu.com/typed.js/2.0.12/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var subtitle = document.getElementById('subtitle');
      if (!subtitle || !typing) {
        return;
      }
      var text = subtitle.getAttribute('data-typed-text');
      
        typing(text);
      
    })(window, document);
  </script>




  
    <script  src="/js/img-lazyload.js" ></script>
  




  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/tocbot/4.18.2/tocbot.min.js', function() {
    var toc = jQuery('#toc');
    if (toc.length === 0 || !window.tocbot) { return; }
    var boardCtn = jQuery('#board-ctn');
    var boardTop = boardCtn.offset().top;

    window.tocbot.init({
      tocSelector     : '#toc-body',
      contentSelector : '.markdown-body',
      headingSelector : CONFIG.toc.headingSelector || 'h1,h2,h3,h4,h5,h6',
      linkClass       : 'tocbot-link',
      activeLinkClass : 'tocbot-active-link',
      listClass       : 'tocbot-list',
      isCollapsedClass: 'tocbot-is-collapsed',
      collapsibleClass: 'tocbot-is-collapsible',
      collapseDepth   : CONFIG.toc.collapseDepth || 0,
      scrollSmooth    : true,
      headingsOffset  : -boardTop
    });
    if (toc.find('.toc-list-item').length > 0) {
      toc.css('visibility', 'visible');
    }
  });
</script>


  <script src=https://lib.baomitu.com/clipboard.js/2.0.10/clipboard.min.js></script>

  <script>Fluid.plugins.codeWidget();</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/anchor-js/4.3.1/anchor.min.js', function() {
    window.anchors.options = {
      placement: CONFIG.anchorjs.placement,
      visible  : CONFIG.anchorjs.visible
    };
    if (CONFIG.anchorjs.icon) {
      window.anchors.options.icon = CONFIG.anchorjs.icon;
    }
    var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
    var res = [];
    for (var item of el) {
      res.push('.markdown-body > ' + item.trim());
    }
    if (CONFIG.anchorjs.placement === 'left') {
      window.anchors.options.class = 'anchorjs-link-left';
    }
    window.anchors.add(res.join(', '));
  });
</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.js', function() {
    Fluid.plugins.fancyBox();
  });
</script>


  <script>Fluid.plugins.imageCaption();</script>

  
      <script>
        if (!window.MathJax) {
          window.MathJax = {
            tex    : {
              inlineMath: { '[+]': [['$', '$']] }
            },
            loader : {
              load: ['ui/lazy']
            },
            options: {
              renderActions: {
                insertedScript: [200, () => {
                  document.querySelectorAll('mjx-container').forEach(node => {
                    let target = node.parentNode;
                    if (target.nodeName.toLowerCase() === 'li') {
                      target.parentNode.classList.add('has-jax');
                    }
                  });
                }, '', false]
              }
            }
          };
        } else {
          MathJax.startup.document.state(0);
          MathJax.texReset();
          MathJax.typeset();
          MathJax.typesetPromise();
        }
      </script>
    

  <script  src="https://lib.baomitu.com/mathjax/3.2.1/es5/tex-mml-chtml.js" ></script>

  <script  src="/js/local-search.js" ></script>

  <script defer src="/js/leancloud.js" ></script>





<!-- 主题的启动项，将它保持在最底部 -->
<!-- the boot of the theme, keep it at the bottom -->
<script  src="/js/boot.js" ></script>


  

  <noscript>
    <div class="noscript-warning">博客在允许 JavaScript 运行的环境下浏览效果更佳</div>
  </noscript>
<script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"log":false,"pluginJsPath":"lib/","pluginModelPath":"assets/","pluginRootPath":"live2dw/","tagMode":false});</script></body>
</html>
